#创建一个元组
my_tuple = (1,2,3,"hello",4,5)

#打印元组
print(my_tuple)

#访问元组中的元素
print(my_tuple[0])#输出：1
print(my_tuple[3])#输出："hello"

import random
stu = []
for c in 'ABCDEFG':
    yz = (c,random.randint(40,100))
    stu.append(yz)

print(stu)
score = sum([s[1] for s in stu])
print("平均分：",score / len(stu))
stu2 = [s for s in stu if s[1]<60 ]
print('不及格人数：', len(stu2))